var t = getApp(), a = null;

Page({
    data: {
        ad: {},
        isTiptrue: !0,
        test:0
    },
    test(){
        t.globalData.test == 1&&wx.navigateTo({
          url: '/pages/test/test',
        })
    },
    load(e){
        console.log(e)
    },
    error(e){
        console.log(e)
    },
    onShow(){
        this.setData({
            ad: ''
        });
        this.setData({
            ad: getApp().globalData.selfAd[parseInt(getApp().globalData.selfAd.length*Math.random())]
        });
    },
    onLoad: function() {

        var e = this;
        
        setTimeout(function(){
            e.setData({
                test:getApp().globalData.test
            })
            e.setData({
                ad: t.globalData.selfAd[parseInt(t.globalData.selfAd.length*Math.random())]
            })
        },2000)
        
        var i = wx.getStorageSync("loadOpen");
        void 0 == i || "" == i ? this.setData({
            isTiptrue: !0
        }) : this.setData({
            isTiptrue: !1
        });
    },
    onShareTimeline(){
        return {title:'史上最好用的修图，表情制作，图片制作工具'}
    },
    onShareAppMessage: function() {
        return {
            title: "超好用的图片编辑小程序",
            path: "pages/index/index",
            imageUrl: "/image/maskshareimg.jpg"
        };
    },
    closeGuide: function(t) {
        wx.setStorage({
            key: "loadOpen",
            data: "OpenTwo"
        }), this.setData({
            isTiptrue: !1
        });
    }
});